package com.xueda.flu_framework;

import android.os.Bundle;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.umeng.commonsdk.UMConfigure;
import com.xueda.flu_framework.location.AMapFlutterLocationPlugin;
import com.xueda.flu_framework.pay.PayPlugin;

import java.util.HashMap;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugin.common.MethodChannel;

public class MainActivity extends FlutterActivity {
    public static String NATIVE_CHANNEL = "com.xueda.flu_framework/channel";
    public static final String CHANNEL_LOCATION = "com.xueda.xdzx/channel/location"; // 打开资料

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("ah","initUM &&&&&");
        UMConfigure.preInit(this,"6539c3d2b2f6fa00ba6c0953","my_channel");
        UMConfigure.submitPolicyGrantResult(this,true);
        UMConfigure.setLogEnabled(true);
    }

    @Override
    public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
        super.configureFlutterEngine(flutterEngine);
        flutterEngine.getPlugins().add(new AMapFlutterLocationPlugin());
        flutterEngine.getPlugins().add(new PayPlugin(this));

    }


}
